import {makeAutoObservable} from "mobx"
import { getRankList } from "@/services/index"
import { IStationRankList } from "@/utils/interface"

class GetRank {
    constructor(){
        makeAutoObservable(this)
    }   
    //仓库中定义的属性
    rankList:IStationRankList[] = []

    //定义仓库中的方法
    async getRankList(){
        let result =await getRankList()
        if(result.data){
            this.rankList=result.data
            console.log(this.rankList)
        }
    }
}
export default new GetRank